package com.ruoyi.employment.api;

import com.ruoyi.employment.api.domain.TeacherToEmploymentDto;
import com.ruoyi.employment.api.factory.RemoteEmploymentFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "remoteEmploymentService",value = ServiceNameConstants.EMPLOYMENT_SERVICE,fallbackFactory = RemoteEmploymentFallbackFactory.class)
public interface RemoteEmploymentService {
    @PostMapping(value = "/employment/teacherToEmployment")
    R<Void> teacherToEmployment(@RequestBody List<TeacherToEmploymentDto> list);
    @PostMapping(value = "/employment/getAllTrack")
    List<TeacherToEmploymentDto> getAllTrack();
}
